const path = require('path')
const { spawnSync } = require('child_process')

require('./clear-dev-dir')

// prettier-ignore
const buildConfigPath = path.resolve(__dirname, './build-config/rollup.dev.config.js');

spawnSync('npx', ['rollup', '-c', buildConfigPath, '-w'], {
  stdio: 'inherit',
  shell: true
})
